#pragma once

#include "Simulator.h"

class BasicDemo : public ISimulation
{
public:
	BasicDemo(void);
	virtual ~BasicDemo(void);

protected:
	//	from ISimulation
	virtual btDynamicsWorld * initPhysics(Simulator & simulator);
	virtual void exitPhysics();

private:
	//keep the collision shapes, for deletion/cleanup
	btDynamicsWorld * m_world;
	btAlignedObjectArray<btCollisionShape*>	m_collisionShapes;
	btBroadphaseInterface*	m_broadphase;
	btCollisionDispatcher*	m_dispatcher;
	btConstraintSolver*	m_solver;
	btDefaultCollisionConfiguration* m_collisionConfiguration;
};

